{include file="header.tpl"}
{if !$core->session->isLoggedIn()}{php}die("You must be logged in");{/php}{/if}
<div class="page_header">Logout</div>
{if !$smarty.get.confirm}
<a href="./?n=logout&confirm=1">Confirm Logout?</a>
{else}
{if $core->session->destroy() == 1}
Logout Successful, <a href="./">Continue</a>
{else}
Logout Failed
{/if}
{/if}
{include file="footer.tpl"}